/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tanks.weapons;

import com.sun.lwuit.Image;
import java.io.IOException;
import tanks.Missiles.Plasma;
import tanks.Tank;

/**
 *
 * @author Александр
 */
public class Plasmagun extends Weapon
    {
        public Plasmagun(Tank t)
        {
            reload = 2;
            tank = t;
            type = "Plasmagun";
            try {
                Gr = Image.createImage("/images/gun3.png");
            }
            catch(IOException ex){
                 ex.printStackTrace();
            }
        }
        public void Fire()
        {
            game.Miss.addElement(new Plasma(tank.Facing(), tank.CurrentCell));
        }
    }
